package cnooc.dataAnalysis.controller;


import cnooc.common.core.controller.BaseController;
import cnooc.common.core.domain.AjaxResult;
import cnooc.dataAnalysis.domain.AnalysisParam;
import cnooc.dataAnalysis.service.TransientService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 瞬时数据查询Controller
 * 
 * @author lambda
 * @date 2023-11-28
 */
@RestController
@RequestMapping("/dataAnalysis/transient")
public class TransientController extends BaseController
{
    @Resource
    TransientService transientService;


    @PostMapping("/queryInstantaneousData")
    public AjaxResult queryInstantaneousData(@RequestBody AnalysisParam param) {
        return AjaxResult.success(transientService.queryInstantaneousData(param));
    }


}
